/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

import java.io.Serializable;
import java.util.Properties;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import javax.enterprise.context.RequestScoped;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;

/**
 *
 * @author Ahmed
 */
@Named
@RequestScoped
public class ThemeHolder implements Serializable {

    @Resource(lookup = "THEMES")
    private Properties themes;
    private String theme;
    @PostConstruct
    public void init(){
        theme=themes.getProperty("CURRENT_THEME");
    }

    public String getTheme() {
        System.out.println(theme);
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }
    

}
